package com.cqut.familiarity.service;

import com.cqut.familiarity.utils.ResultEntity;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.concurrent.TimeUnit;

public interface RedisService {

    ResultEntity removeRedisKey(String key);

    ResultEntity getRedisStringValueByKey(String key);

    ResultEntity setRedisKeyValueRemote(String key,String value);

    ResultEntity setRedisKeyValueWithTimeout( String key, String value,  long time,  TimeUnit timeUnit);

}
